package com.qf.erp_system_admin.service.impl;
import com.qf.erp_system_admin.entity.Stock;
import com.qf.erp_system_admin.mapper.StockMapper;
import com.qf.erp_system_admin.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;


/**
 * --- 天道酬勤 ---
 *
 * @author QiaoZhenWei
 * @date 2024/7/25
 * @desc --- 代码敲烂 月薪过万 ---
 */
@Service
public class StockServiceImpl implements StockService {
	@Autowired
	private StockMapper stockMapper;
	@Override
	public List<Stock> findAllStock(HashMap<String, String> map) {
		return stockMapper.findAllStock(map);
	}

	@Override
	public List<String> findDepot() {
		return stockMapper.findDepot();
	}

	// @Override
	// public List<String> findName() {
	// 	return stockMapper.findName();
	// }


	@Override
	public List<String> findOperator() {
		return stockMapper.findOperator();
	}

	@Override
	public boolean addStock(Stock stock) {
		return stockMapper.addStock(stock);
	}

	@Override
	public boolean editStock(Stock stock) {
		return stockMapper.editStock(stock);
	}

	@Override
	public boolean delByStockId(int skId) {
		return stockMapper.delByStockId(skId);
	}

	// @Override
	// public void saveBatch(ArrayList<Stock> list) {
	// 	stockMapper.saveBatch(list);
	// }


}
